// secure-ls是对原生localstorage的封装，能够实现对localstorange存储的加密
import SecureLS from "secure-ls";

// encodingType: aes 加密类型为aes   isCompression 是否压缩数据： 否
const ls = new SecureLS({ encodingType: "aes", isCompression: false });

export const get = (key) => ls.get(key);
export const set = (key, value) => ls.set(key, value);
export const remove = (key) => ls.remove(key);
export const clear = () => ls.removeAll();
